import request from '@/utils/request'

// 查询银行账户列表
export function listBankMerchant(query) {
  return request({
    url: '/merchant/bankMerchant/list',
    method: 'get',
    params: query
  })
}

// 查询银行账户详细
export function getBankMerchant(id) {
  return request({
    url: '/merchant/bankMerchant/' + id,
    method: 'get'
  })
}

// 新增银行账户
export function addBankMerchant(data) {
  return request({
    url: '/merchant/bankMerchant',
    method: 'post',
    data: data
  })
}

// 修改银行账户
export function updateBankMerchant(data) {
  return request({
    url: '/merchant/bankMerchant',
    method: 'put',
    data: data
  })
}

// 删除银行账户
export function delBankMerchant(id) {
  return request({
    url: '/merchant/bankMerchant/' + id,
    method: 'delete'
  })
}

// 导出银行账户
export function exportBankMerchant(query) {
  return request({
    url: '/merchant/bankMerchant/export',
    method: 'get',
    params: query
  })
}
